<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="{{__PUBLIC__}}/Home/css/Orderdetail.css" />
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/common_header.css"/>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/common_bottom.css"/>
		<script type="text/javascript" src="{{__PUBLIC__}}/jquery-1.7.2.min.js"></script>
		<title></title>
	</head>
	<body>
		<!--引入公共头部-->
	{{include file="VIEW_PATH/Common/header.php"}}
	<!--logo下面的导航-->
	<?php 
//	实例化
	$cateModel = new \Home\Common\Model\Category;
//	调用模型里面的方法，得到数组
	$cateData = $cateModel->getCate();
	 ?>
	<div class="navigation_long">
		<div class="navigation">
			<div class="navigation_l">
				<p>全部商品<i></i></p>
				<!--二级菜单-->
				<ul class="category_box_l">
					{{foreach from="$cateData" value="$second_v"}}
			<li class="category_item">
				<div class="category-info">
					<a href="{{U('Lists/index',array('cid'=>$second_v['cid']))}}" class="category_title">{{$second_v['cname']}}</a>
					{{foreach from="$second_v['threeSon']" value="$threeSon_v"}}
					<a href="{{U('Lists/index',array('cid'=>$threeSon_v['cid']))}}" class="category_second">{{$threeSon_v['cname']}}</a>
					{{endforeach}}
				</div>
				<!--移入li右侧div-->
				<div class="category-panels">
					<ul class="subcate-list">
						{{foreach from="$second_v['son']" value="$son_v"}}
						<li class="subcate-item">
							<a href="/list-75" target="_blank">
								<span>{{$son_v['cname']}}</span>
							</a>
						</li>
						{{endforeach}}
					</ul>
				</div>
			</li>
			{{endforeach}}
		</ul>
		<!--二级菜单结束-->
			</div>
		<!--右侧-->
		<ul class="navigation_r">
			<li style="background: #BA181F;" class="navigation_r_hover">
				<a href="index.php">首页</a>
			</li>
			{{foreach from="$cateData" value="$nav_v"}}
			<li class="navigation_r_hover">
				<a href="{{U('Lists/index',array('cid'=>$nav_v['cid']))}}" >{{$nav_v['cname']}}</a>
			</li>
			{{endforeach}}
		</ul>	
		</div>
	</div>
	<!--logo下面的导航结束-->
		<!--顶部导航部分-->
		<div class="category">
			<a href="">首页</a>&nbsp;&nbsp;\&nbsp;&nbsp;<a href="">我的商城</a>&nbsp;&nbsp;\&nbsp;&nbsp;我的订单
		</div>
		<!--顶部导航部分结束-->
		<div class="main">
			<div class="left">
				<!-- <a class='title'>我的商城<a> -->
				<h3 class='order_center'>
					<span>订单中心</span>
				</h3>
				<ul class='order_list'>
					<li class='cur'><a href="{{U('index')}}">我的订单</a><em>{{$ordernum}}</em></li>
				</ul>
				<h3 class='order_center'>
					<span>个人中心</span>
				</h3>
				<ul class='order_list'>
					<li><a href="{{U('address')}}">收货地址管理</a></li>
				</ul>
			</div>
			<!--右边部分-->
			<!--***************************************-->
			<!--<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Bootstrap/Css/bootstrap.min.css"/>-->
			<div class="fr u-4-5"><!-- 20141212-栏目-start -->
<div class="section-header" style="position: relative;">
    <div class="fl">
        <h2><span>订单号：{{$addData['number']}}</span></h2>
    </div>
    <div class="fr">
    	<div class="section-header-button">
    		<script type="text/javascript">
    			$(function(){
    				$('.button-operate-cancel-order').click(function(){
    					$('.popup-define-area').show();
    				})
    				$('#ec_ui_confirm_no').click(function(){
    					$('.popup-define-area').hide();
    				})
    			})
    		</script>
    				{{if value="$addData['status'] eq '未支付'"}}
					<a class="button-operate-cancel-order" href="javascript:;" title="取消订单">
						<span>取消订单</span>
					</a>
					<a class="button-operate-pay" href="{{U('Order/successOrder',array('oid'=>$addData['oid']))}}" target="_blank">
					<span>立即支付</span>
					</a>
					{{endif}}
					{{if value="$addData['status'] eq '已付款'"}}
					<a class="button-operate-pay" href="javascript:;">
					<span>提醒发货</span>
					</a>
					{{endif}}
					{{if value="$addData['status'] eq '已发货'"}}
					<a class="button-operate-pay" href="/payment/order-1730044053" target="_blank">
					<span>确认收货</span>
					</a>
					{{endif}}
    	</div>
    </div>
</div>
<!-- 20141212-栏目-end -->
	<!-- 20141223-订单详情-订单状态-start -->
	{{if value="!$addData['status'] eq '已取消'"}}
	<div class="order-detail-state">
		<!-- 20141223-订单进度-start -->
		<style type="text/css">
			.black{
				color: #333;
			}
		</style>
	    <div class="order-state-progress">
	        <ol>
	            <li class="first completed" style="background-image: none;">
	                <s {{if value="$addData['status'] eq '未支付'"}} style="background-position: 6px -39px;" {{endif}}></s>
	                <dl>
	                    <dt {{if value="$addData['status'] eq '未支付'"}} class="black" {{endif}}>提交订单</dt>
	                    <dd>
	                    	<p>{{if value="$addData['status'] eq '未支付'"}}{{date('Y-m-d H:i:s',time())}} {{endif}}</p>
	                    	<p></p>
	                    </dd>
	                </dl>
	            </li>
	            	<li>
		                <s {{if value="$addData['status'] eq '已付款'"}} style="background-position: 6px -39px;" {{endif}}></s>
		                <dl>
		                    <dt {{if value="$addData['status'] eq '已付款'"}} class="black" {{endif}}>付款成功</dt>
		                    <dd>
		                    	<p>{{if value="$addData['status'] eq '已付款'"}}{{date('Y-m-d H:i:s',time())}} {{endif}}</p>
		                    	<p></p>
		                    </dd>
		                </dl>
		            </li>
	            
	            <li>
	                <s {{if value="$addData['status'] eq '已发货'"}} style="background-position: 6px -39px;" {{endif}}></s>
	                <dl>
	                    <dt {{if value="$addData['status'] eq '已发货'"}} class="black" {{endif}}>商品出库</dt>
	                    <dd>
	                    	<p>{{if value="$addData['status'] eq '已发货'"}}{{date('Y-m-d H:i:s',time())}} {{endif}}</p>
	                    	<p></p>
	                    </dd>
	                </dl>
	            </li>
	            <li>
	                <s {{if value="$addData['status'] eq '已完成'"}} style="background-position: 6px -39px;" {{endif}}></s>
	                <dl>
	                    <dt {{if value="$addData['status'] eq '已完成'"}} class="black" {{endif}}>收货并确认</dt>
	                    <dd>
	                    	<p>{{if value="$addData['status'] eq '已完成'"}}{{date('Y-m-d H:i:s',time())}} {{endif}}</p>
	                    	<p></p>
	                    </dd>
	                </dl>
	            </li>
	        </ol>
	    </div>
	    <!-- 20141223-订单进度-end -->
	</div>
	{{endif}}
	<!-- 20141223-订单详情-订单状态-end -->	
<div class="hr-50"></div>
<div class="order-detail-receive">
	<div class="h">
		<h3>收货信息</h3>
	</div>
	<div class="b">
		<div class="form-info-panels">
			<table border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<th>姓名：</th>
						<td>{{$addData['name']}}</td>
					</tr>
					<tr>
						<th>收货地址：</th>
						<td>{{$addData['address']}}</td>
					</tr>
					<tr>
						<th>联系电话：</th>
						<td>{{$addData['phone']}}</td>
					</tr>
					<tr>
						<th>配送方式：</th>
						<td>由{{$addData['Courier_name']}}公司配送</td>
					</tr>
		                    <tr>
		                        <th>发票信息：</th>
		                        <td>
		                        	个人
		                        	&nbsp;&nbsp;
		                        </td>
		                    </tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
<!-- 20141223-订单详情-收货信息-end -->
<div class="hr-50"></div>
	<!-- 20141223-订单详情-商品清单-start -->
	<div class="order-detail-pro">
		<!-- 20141223-商品清单-商品列表-start -->
		<div class="order-pro-record">
			<div class="list-group-caption">
				<h3>商品清单</h3>
			</div>
			<div class="list-group-title">
	    		<table border="0" cellpadding="0" cellspacing="0">
	    			<thead>
	    				<tr>
	    					<th class="col-pro">商品名称</th>
	    					<th class="col-int">积分</th>
	    					<th class="col-price">单价/元</th>
	    					<th class="col-quty">数量</th>
	    					<th class="col-pay">小计/元</th>
	    					<th class="col-state">状态</th>
	    				</tr>
	    			</thead>
	    		</table>
	    	</div>
	    	<div class="list-group">
	    		<!-- 组合套餐 -->
		    		<div class="list-group-item">
		    			{{foreach from="$OrderListsData" value="$lists_v"}}
		    			<div class="o-pro">
		    				<table border="0" cellpadding="0" cellspacing="0">
			        			<tbody>
			        					
				        				<tr>
				        					<td class="col-pro-img">
			        							<p class="p-img">
			        								<a href="/product/2519.html#6479" target="_blank">
														<img src="{{__ROOT__}}/{{$lists_v['lists_pic']}}" width="100px">                                        
													</a>
			        							</p>
				        					</td>
				        					<td class="col-pro-info">
			    								<p class="p-name">
			    									<a title="荣耀畅玩5X 双卡双待 增强全网通版 智能手机（落日金）套餐一" target="_blank" href="/product/2519.html#6479">荣耀畅玩5X 双卡双待 增强全网通版 智能手机（落日金）套餐一</a>
			    								</p>
				        					</td>
				        					<td class="col-int">0</td>
				        					<td class="col-price"><em>¥</em><span>
				        								1799.00
				        					</span></td>
				        					<td class="col-quty">1</td>
				        					<td class="col-pay" rowspan="6"><em>¥</em><span>
				        							1799.00
				        					</span></td>
				        					<td class="col-state">--</td>
				        				</tr>
				        				
			        			</tbody>
			        		</table>
		    			</div>
		    			{{endforeach}}
		    		</div>
	    	</div>
		</div>
		<!-- 20141223-商品清单-商品列表-end -->
		<!-- 20141223-商品清单-赠品列表-start -->
		<!-- 20141223-商品清单-赠品列表-end -->
		<!-- 20141223-商品清单-合计-start -->
		<div class="order-pro-total">
			<div class="order-pro-cost">
				<table border="0" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<th>商品金额总计：</th>
							<td><em>¥</em><span>{{$addData['totalprice']}}.00</span></td>
						</tr>
						<tr>
							<th>
运费：</th>
							<td><em>¥</em><span>0.00</span></td>
						</tr>
						<tr>
							<th>使用优惠券：</th>
							<td><em>-&nbsp;¥</em><span>0.00</span></td>
						</tr>
						<tr>
							<th>使用花瓣：</th>
							<td><em>-&nbsp;¥</em><span>0.00</span></td>
						</tr>
						<tr>
							<th>
&nbsp;商家活动：
							</th>
							<td><em>-&nbsp;¥</em><span>0.00</span></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="order-pro-cost-total">合计（含运费）：<em>¥</em><span>
					{{$addData['totalprice']}}.00
				</span></div>
		</div>
		<!-- 20141223-商品清单-合计-end -->
	</div>
	<!-- 20141223-订单详情-商品清单-end -->
			<div class="order-detail-action"> 
				{{if value="$addData['status'] eq '已付款'"}}
				<a class="button-operate-pay" href="javascript:;">
				<span>提醒发货</span>
				</a>
				 {{endif}}
			</div>
			<!--********************************************-->
		</div>
	<!--商城宣传-->
	<div class="slogan">
		<ul>
			<li style="width: 326px;"><i></i>500强企业 品质保证</li>
			<li style="width: 327px;"><i></i>7天退货 15天换货</li>
			<li><i></i>99元起免运费</li>
			<li style="float: right;"><i></i>448家维修网点 全国联保</li>
		</ul>
	</div>
<!--服务-->
<!--确认删除   开始-->
			<div style="top: 107.5px; left: 739.5px; position: absolute; display: none;" id="ec_ui_confirm" class="popup-area popup-define-area hide">
			    <div class="b">
			        <p id="ec_ui_confirm_msg">您确认要取消该订单吗？</p>
			        <div class="popup-button-area">
			        	<a id="ec_ui_confirm_yes" href="{{U('User/delOrders',array('oid'=>Q('get.oid',0,'intval')))}}" class="button-action-yes" title="是"><span>是</span></a>
			        	<a id="ec_ui_confirm_no" href="javascript:;" class="button-action-no" title="否"><span>否</span></a></div>
			    </div>
			    <div class="f"><s class="icon-arrow-down"></s></div>
			</div>
			<!--确认删除结束-->
	<!--底部友情链接-->
	<div class="footer">
		<div class="footer-otherLink">
		</div>
		<div class="footer-warrant-area">
			<p>Copyright © 2011-2015  华为软件技术有限公司  版权所有  保留一切权利  苏B2-20130048号 | 苏ICP备09062682号-9</p>
			<p><a href="">网络文化经营许可证苏网文[2012]0401-019号</a></p>
			<p class="footer-warrant-img">
				<a href=""><img src="{{__PUBLIC__}}/Home/images/certificate_01_112_40.png" alt="" /></a>
				<a href=""><img src="{{__PUBLIC__}}/Home/images/certificate_02_112_40.png" alt="" /></a>
				<a href=""><img src="{{__PUBLIC__}}/Home/images/certificate_03_112_40.png" alt="" /></a>
			</p>
		</div>
	</div>		
	</body>
</html>
